<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/common/topBegin.jsp"%>
<style>
*{font-size:12px;}

/* styles for rows */  
.ux-action-col-cell .x-grid3-cell-inner {   
    padding:1px 0 0 0;   
}   
.ux-action-col-item {   
    float:left;   
    min-width:16px;   
    height:16px;   
    background-repeat:no-repeat;   
    margin: 0 3px 0 2px;   
    cursor:pointer;   
    overflow:hidden;   
}   
.ext-ie .ux-action-col-item {   
    width:16px;   
}   
.ext-ie .ux-action-col-text {   
    width:auto;   
}   
.ux-action-col-item span {   
    vertical-align:middle;   
    padding:0 0 0 18px;   
    line-height:18px;   
}   
.ext-ie .ux-action-col-item span {   
    width:auto;   
}  
</style>
<script>
var tbarOpr = [],queryRole=false,editRole=false;
<c:if test="${my:hasPermission(currentUser.id,'area','CREATE')}">
tbarOpr.push({
	text : '新增',
	iconCls : 'page_addIcon',
	handler : function() {
		listView.addInit();
	}
});
</c:if>
<c:if test="${my:hasPermission(currentUser.id,'area','UPDATE')}">
	editRole=true;
	tbarOpr.push({
		text : '修改',
		iconCls : 'page_edit_1Icon',
		handler : function() {
			listView.editInit();
		}
	});
</c:if>
<c:if test="${my:hasPermission(currentUser.id,'area','DELETE')}">
	tbarOpr.push({
		text : '删除',
		iconCls : 'page_delIcon',
		handler : function() {
			listView.deleteItem();
		}
	});
</c:if>
<c:if test="${my:hasPermission(currentUser.id,'area','READ')}">
	queryRole=true;
</c:if>
</script>
<%@include file="/WEB-INF/common/topEnd.jsp"%>	
<%@include file="/WEB-INF/common/bodyBegin.jsp"%>
<div id="areaTreeDiv"></div>
<script type="text/javascript" src="${ctx}/js/extjs/ux/Ext.ux.grid.RowActions.js"></script>
<script type="text/javascript" src="${ctx}/js/app-web/dict/area/AreaForm.js"></script>
<script type="text/javascript" src="${ctx}/js/app-web/dict/area/AreaView.js"></script>
<%@include file="/WEB-INF/common/bodyEnd.jsp"%>	
